<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>图书馆座位预约系统 - 注册</title>
    <link rel="stylesheet" th:href="@{/css/style.css}">
    <style>
        /* 新增美化样式 */
        body {
            background: #f0f2f5;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
        }

        .container {
            max-width: 400px;
            margin: 50px auto;
            padding: 40px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        h2 {
            color: #2c3e50;
            text-align: center;
            margin-bottom: 30px;
            font-size: 28px;
        }

        form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        label {
            color: #34495e;
            font-weight: 500;
            margin-bottom: -10px;
        }

        input {
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }

        input:focus {
            border-color: #3498db;
            outline: none;
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }

        button {
            background: #3498db;
            color: white;
            padding: 14px;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s ease, transform 0.2s ease;
        }

        button:hover {
            background: #2980b9;
            transform: translateY(-1px);
        }

        p {
            text-align: center;
            margin-top: 20px;
            color: #7f8c8d;
        }

        a {
            color: #3498db;
            text-decoration: none;
            font-weight: 500;
        }

        a:hover {
            text-decoration: underline;
        }

        nav {
            background: #2c3e50;
            padding: 15px 0;
            position: fixed;
            bottom: 0;
            width: 100%;
        }

        nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            justify-content: center;
            gap: 30px;
        }

        nav a {
            color: white;
            font-size: 16px;
            transition: color 0.3s ease;
        }

        nav a:hover {
            color: #3498db;
            text-decoration: none;
        }

        @media (max-width: 480px) {
            .container {
                margin: 30px 15px;
                padding: 25px;
            }

            nav ul {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
        }
    </style>
</head>
<body>
<div class="container">
    <h2>📚 图书馆座位预约系统</h2>
    <form action="/users/register" method="post">
        <label for="username">用户名</label>
        <input type="text" id="username" name="username" required placeholder="请输入用户名">

        <label for="password">密码</label>
        <input type="password" id="password" name="password" required placeholder="请输入密码">

        <label for="email">电子邮箱</label>
        <input type="email" id="email" name="email" required placeholder="example@lib.com">

        <button type="submit">立即注册</button>
    </form>
    <p>已有账号？<a href="/login">立即登录</a></p >
</div>
<nav>
    <ul>
        <li><a href="/login">🔑 登录</a></li>
        <li>🏷️<a href="/seats"> 座位选择</a></li>
        <li>📜<a href="/history"> 预约历史</a></li>
        <li>📢 <a href="/announcements">最新公告</a></li>
    </ul>
</nav>
</body>
</html>